var excellent_TabNav = document.getElementById("ares_excellent_TabNav");
var excellent_TabNav_ul_lis = document.querySelectorAll("#ares_excellent_TabNav_ul>div" );
var ares_excellent_puBuLiu = document.getElementById("ares_excellent_puBuLiu");
var ares_pubuliu_DIV = document.querySelectorAll('#ares_excellent_puBuLiu>div');
var ares_pubuliu_cuxiao = document.querySelectorAll("#cuxiao");
var ares_pubuliu_choujiang = document.getElementById("choujiang");
var ares_pubuliu_diancai = document.getElementById("diancai");
var ares_pubuliu_diaocha = document.getElementById("diaocha");
var ares_pubuliu_zhaopin = document.getElementById("zhaopin");

ares_excellent_TabNav_ul_lis[0].style.border = "3px solid black";
ares_excellent_TabNav_ul_lis[0].style.backgroundColor="orange";
var aaq=0;
for (var i = 0; i<ares_excellent_TabNav_ul_lis.length; i++) {
	ares_excellent_TabNav_ul_lis[i].index = i; 
	ares_excellent_TabNav_ul_lis[i].onclick = function(){
		
		
	for (var j =0; j<ares_excellent_TabNav_ul_lis.length;j++) {
		ares_excellent_TabNav_ul_lis[j].style.border = "none";
		ares_excellent_TabNav_ul_lis[j].style.backgroundColor="white";
				
		
	}
	for (var q = 0; q<ares_pubuliu_DIV.length;q++) {
				ares_pubuliu_DIV[q].style.display = "none";
			}
//		alert(this.index);
		this.style.border = "3px solid black";
		this.style.backgroundColor="orange";
//		alert(this.index);
		switch (this.index){
			case 0:for (var k = 0; k<ares_pubuliu_DIV.length;k++) {
				ares_pubuliu_DIV[k].style.display = "block";
			}
			break;
			case 1:for (var d =0;d<ares_pubuliu_cuxiao.length;d++) {
				ares_pubuliu_cuxiao[d].style.display = "block";
			}
			break;
			case 2:ares_pubuliu_choujiang.style.display="block";
			break;
			case 3:ares_pubuliu_diancai.style.display = "block";
			break;
			case 4:ares_pubuliu_diaocha.style.display = "block";
			break;
			case 5:ares_pubuliu_zhaopin.style.display = "block";
			break;
		}
	}
}





//---------------------瀑布流-------------------
function randH (min, max) {
			return parseInt(Math.random() * (max - min + 1)) + min;
		}

for (var i =0; i<ares_pubuliu_DIV.length;i++) {
	var bbs = randH(1,2);
	if (bbs == 1) {
		bbq = 260;
	}else{
		bbq = 400;
	}
//	var bbq = randH(260,400);
		ares_pubuliu_DIV[i].style.height = bbq+"px";
//	if (bbq ==400) {
//		ares_pubuliu_DIV[i].style.float = "right";}
//	}else{
//		ares_pubuliu_DIV[i].style.float = "left";
//	}

}
//----------------悬停放大-------------------
